//
//  AppearanceManager.swift
//  CarHailingDriver
//
//  Created by guoliang.zhu on 2019/10/17.
//  Copyright © 2019 iOS-team. All rights reserved.
//

import UIKit

class AppearanceManager: NSObject {
    
    static let `default` = AppearanceManager()
    
    /// 设置全局的样式
    public func appearance(){
        let bar = UINavigationBar.appearance()
        var dic: [NSAttributedString.Key : Any] = [:]
        dic.updateValue(UIColor.init(hex: 0x212121), forKey: .foregroundColor)
        dic.updateValue(UIFont.systemFont(ofSize: 16), forKey: .font)
        bar.isTranslucent = false
        bar.titleTextAttributes = dic
    }
}
